package com.sodaopen.study.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sodaopen.study.entity.Clazz;
import com.sodaopen.study.mapper.ClazzMapper;
import com.sodaopen.study.service.ClazzService;

@Service
public class ClazzServiceImpl implements ClazzService {
	
	@Autowired
	private ClazzMapper clazzMapper;

	@Override
	public List<Clazz> findAll() {
		return clazzMapper.selectAll();
	}

	@Override
	public void saveClazz(Clazz clz) {
		clazzMapper.saveClazz(clz);
	}

	@Override
	public void saveClazzCourse(Integer clazzId, String[] courseIds) {
		clazzMapper.saveClazzCourse(clazzId, courseIds);
	}

}
